build_guard "curlpp" || return

source "$BUILD_TOOL_ROOT/build-script/curl.sh"

print_title "Build for curlpp" && cd "$BUILD_TOOL_DEP_ROOT/curlpp"
cmake -S . -B "build" -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCMAKE_BUILD_TYPE=Release -DCURLPP_BUILD_SHARED_LIBS=OFF
cmake --build "build" --config Release --target install

: '
Usage:
find_package(PkgConfig MODULE REQUIRED)
pkg_check_modules(curlpp REQUIRED IMPORTED_TARGET curlpp)
target_link_libraries(${PROJECT_NAME} PRIVATE PkgConfig::curlpp)
'
